package org.dftproject.lineagelinkage.adapter;

import java.io.Serializable;
import java.util.List;

import org.dftproject.genesis.data.genealogy.IPlace;

import edu.byu.cs428.twenty_gen.datamodel.pedigree.event.Location;
import edu.byu.cs428.twenty_gen.datamodel.pedigree.view.interfaces.ILocation;

public class GenLocation implements Serializable, ILocation {

	private static final long serialVersionUID = 5708663058431671774L;

	List<String> locations;
	
	public GenLocation(IPlace place){
		if(place != null && place.toString() != null && place.toString().length() > 0){
			locations = Location.parseLocation(place.toString());
		}
	}

	public List<String> getLocations() {
		return locations;
	}
}
